<?php
if(  count( $this->posts ) ):
    foreach( $this->posts AS $post ) : ?>
	<tr class="result" id="post_<?php echo $post['post_id']?>">
	    <th>
		<span><?php echo $post['post_title'] ?></span>
	    </th>
	    <td title="<?php echo $post['category_name'] ?>">
		<span><?php echo $post['category_name'] ?></span>
	    </td>
	    <td title="<?php echo $post['user_name'] ?> <?php echo $post['user_surname'] ?>">
		<span><?php echo $post['user_name'] ?> <?php echo $post['user_surname'] ?></span>
	    </td>
	    <td title="<?php echo $post['post_published_ita'] ?>">
		<span><?php echo $post['post_published_ita'] ?></span>
	    </td>
	    <td title="Operazioni">
		<span class="actions">
		    <a class="edit" href="/admin/posts/info/id/<?php echo $post['post_id']?>">Edit</a>
		    <a class="del" href="">Canc</a>
		</span>
	    </td>
	</tr>
    <?php endforeach;
else:
    ?><tr class="result"><td colspan="5">Nessun elemento presente...</td></tr> <?php	
endif;?>